package com.hjm.project.agentInfo.accountDetails.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hjm.project.agentInfo.accountDetails.mapper.AccountDetailsMapper;
import com.hjm.project.agentInfo.accountDetails.domain.AccountDetails;
import com.hjm.project.agentInfo.accountDetails.service.IAccountDetailsService;
import com.hjm.common.utils.text.Convert;

/**
 * 充值详情Service业务层处理
 * 
 * @author generator
 * @date 2020-11-27
 */
@Service
public class AccountDetailsServiceImpl implements IAccountDetailsService 
{
    @Autowired
    private AccountDetailsMapper accountDetailsMapper;

    /**
     * 查询充值详情
     * 
     * @param id 充值详情ID
     * @return 充值详情
     */
    @Override
    public AccountDetails selectAccountDetailsById(Long id)
    {
        return accountDetailsMapper.selectAccountDetailsById(id);
    }

    /**
     * 查询充值详情列表
     * 
     * @param accountDetails 充值详情
     * @return 充值详情
     */
    @Override
    public List<AccountDetails> selectAccountDetailsList(AccountDetails accountDetails)
    {
        return accountDetailsMapper.selectAccountDetailsList(accountDetails);
    }

    /**
     * 新增充值详情
     * 
     * @param accountDetails 充值详情
     * @return 结果
     */
    @Override
    public int insertAccountDetails(AccountDetails accountDetails)
    {
        return accountDetailsMapper.insertAccountDetails(accountDetails);
    }

    /**
     * 修改充值详情
     * 
     * @param accountDetails 充值详情
     * @return 结果
     */
    @Override
    public int updateAccountDetails(AccountDetails accountDetails)
    {
        return accountDetailsMapper.updateAccountDetails(accountDetails);
    }

    /**
     * 删除充值详情对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteAccountDetailsByIds(String ids)
    {
        return accountDetailsMapper.deleteAccountDetailsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除充值详情信息
     * 
     * @param id 充值详情ID
     * @return 结果
     */
    @Override
    public int deleteAccountDetailsById(Long id)
    {
        return accountDetailsMapper.deleteAccountDetailsById(id);
    }
}
